// MESSAGE KF_OTHER support class

#pragma once

namespace mavlink {
namespace fppa {
namespace msg {

/**
 * @brief KF_OTHER message
 *
 * kF_OTHER
 */
struct KF_OTHER : mavlink::Message {
    static constexpr msgid_t MSG_ID = 30;
    static constexpr size_t LENGTH = 240;
    static constexpr size_t MIN_LENGTH = 240;
    static constexpr uint8_t CRC_EXTRA = 138;
    static constexpr auto NAME = "KF_OTHER";


    std::array<float, 60> Data; /*<  data */


    inline std::string get_name(void) const override
    {
            return NAME;
    }

    inline Info get_message_info(void) const override
    {
            return { MSG_ID, LENGTH, MIN_LENGTH, CRC_EXTRA };
    }

    inline std::string to_yaml(void) const override
    {
        std::stringstream ss;

        ss << NAME << ":" << std::endl;
        ss << "  Data: [" << to_string(Data) << "]" << std::endl;

        return ss.str();
    }

    inline void serialize(mavlink::MsgMap &map) const override
    {
        map.reset(MSG_ID, LENGTH);

        map << Data;                          // offset: 0
    }

    inline void deserialize(mavlink::MsgMap &map) override
    {
        map >> Data;                          // offset: 0
    }
};

} // namespace msg
} // namespace fppa
} // namespace mavlink
